<?php
namespace Apps\Model;
use Phalcon\Mvc\Model;

class User extends Model{

    public function columnMap(){
        return array(
            'id' => 'id', 
            'name' => 'name', 
			'pwd' => 'pwd',
			'tel' => 'tel',
            'money' => 'money'
        );
    }


    public function initialize() {
        $this->setSource('dg_user');
        $this ->hasMany('id','Apps\Model\Pay','user_id');
		}

	


}
?>